import { request } from "@/utils/request";

export function addOffice(params: Object) {
  return request({
    url: "api/addDept.php",
    method: "GET",
    params,
  });
}
export function getOffice(params: Object) {
  return request({
    url: "api/dept/getAllDept.php",
    method: "GET",
    params,
  });
}
export function GetOfficeInfo(params: any) {
  return request({
    url: `api/dept/getOneDept.php`,
    method: "GET",
    params,
  });
}
export function EditOfficeInfo(params: any) {
  return request({
    url: `api/dept/updateDept.php`,
    method: "GET",
    params,
  });
}
export function DelOffice(params: any) {
  return request({
    url: `api/dept/delDept.php`,
    method: "GET",
    params,
  });
}
